package com.tledu.service.impl;

import com.tledu.dao.EmployeeDao;
import com.tledu.dao.ProductDao;
import com.tledu.model.Product;
import com.tledu.service.ProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class ProductServiceImpl implements ProductService {

    @Autowired
    private ProductDao productDao;



    @Override
    public List<Product> list() {
        return productDao.list();
    }

    @Override
    public int insert(Product product) {
        return productDao.insert(product);
    }

    @Override
    public int delete(String productId) {
        return productDao.delete(productId);
    }

    @Override
    public int update(Product product) {
        return productDao.update(product);
    }

    @Override
    public Product selectById(String productId) {
        return productDao.selectById(productId);
    }
}
